package com.pkfare.exam.controller;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.context.request.async.DeferredResult;
import reactor.core.publisher.Mono;

@RestController
public class LongPollingController {

    @GetMapping("/fetch-data")
    public Mono<String> /* 返回值类型可以自定义，也可使用DeferredResult<String>或任意其他方式 */ fetchData(String category){
        // TODO
    }

    @PostMapping("/publish-data")
    public String publishData(@RequestBody Data data){
        // TODO
    }

}
